package com.example.demo.service;

import com.example.demo.entity.News;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface NewsService {
    // 根据id查询
    News getById(Integer id);

    // 分页查询
    List<News> getAll(PageRequest pageable);
}